From: Anton Gladky Date: Thu, 5 Feb 2026 19:55:34 +0000 (+0100) Subject: Fix path for the installation of python modules X-Git-Tag: archive/raspbian/9.5.2+dfsg3-6+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=243176e575dcd23e7edb529e36f130714bea23b0;p=vtk9.git Fix path for the installation of python modules Last-Update: 2020-11-06 Gbp-Pq: Name 50_fix_python-modules_path.patch --- diff --git a/CMake/vtkModuleWrapPython.cmake b/CMake/vtkModuleWrapPython.cmake index bae4c173..4ed23e61 100644 --- a/CMake/vtkModuleWrapPython.cmake +++ b/CMake/vtkModuleWrapPython.cmake @@ -82,7 +82,7 @@ function (vtk_module_python_default_destination var) "for Python modules.") set(_vtk_python_version_suffix) endif () - set(destination "${CMAKE_INSTALL_LIBDIR}/python${_vtk_python_version_suffix}/site-packages") + set(destination "lib/python3/dist-packages") endif () set("${var}" "${destination}" PARENT_SCOPE) diff --git a/Utilities/Python/CMakeLists.txt b/Utilities/Python/CMakeLists.txt index 18c01d79..f291870f 100644 --- a/Utilities/Python/CMakeLists.txt +++ b/Utilities/Python/CMakeLists.txt @@ -54,7 +54,7 @@ if (NOT VTK_PYTHON_SITE_PACKAGES_SUFFIX) set(VTK_PYTHON_SITE_PACKAGES_SUFFIX "Lib/site-packages") else () set(VTK_PYTHON_SITE_PACKAGES_SUFFIX - "python${vtk_python_version_pair}/site-packages") + "python3/dist-packages") endif () endif ()